﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YXShop.IDAL.Accessories
{
    public interface IQuestionnaire
    {   /**
         *kevin建 
        **/
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(YXShop.Model.Accessories.Questionnaire model);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        void Update(YXShop.Model.Accessories.Questionnaire model);
        /// <summary>
        /// 根据Id删除
        /// </summary>
        /// <param name="id"></param>
        void Delete(int id);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        void DeleteAll(string ids);
        /// <summary>
        /// 根据ID查对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        YXShop.Model.Accessories.Questionnaire GetModelById(int id);
        /// <summary>
        /// 得到指定条件列表
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        List<YXShop.Model.Accessories.Questionnaire> GetAll(string strWhere);
        /// <summary>
        /// 分页查所有
        /// </summary>
        /// <returns></returns>
        ChangeHope.DataBase.DataByPage GetAllList();
    }
}
